/**
 * Project Name:SpringMVC
 * File Name:EmployeeServiceImpl.java
 * Package Name:com.jerry.service.impl
 * Date:2013-4-15下午8:54:42
 * Copyright (c) 2013, chenzhou1025@126.com All Rights Reserved.
 *
*/
/**
 * Project Name:SpringMVC
 * File Name:EmployeeServiceImpl.java
 * Package Name:com.jerry.service.impl
 * Date:2013-4-15下午8:54:42
 * Copyright (c) 2013, chenzhou1025@126.com All Rights Reserved.
 *
 */

package com.jerry.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.jerry.dao.IEmployeeDAO;
import com.jerry.dao.po.EmployeePO;
import com.jerry.dao.vo.EmpFindVO;
import com.jerry.dao.vo.EmployeeVO;
import com.jerry.exception.BzException;
import com.jerry.exception.DBException;
import com.jerry.service.IEmployeeService;

/**
 * ClassName:EmployeeServiceImpl <br/>
 * Function: TODO ADD FUNCTION. <br/>
 * Reason:	 TODO ADD REASON. <br/>
 * Date:     2013-4-15 下午8:54:42 <br/>
 * @author   Administrator
 * @version  
 * @since    JDK 1.6
 * @see 	 
 */
/**
 * ClassName: EmployeeServiceImpl <br/>
 * Function: TODO ADD FUNCTION. <br/>
 * Reason: TODO ADD REASON(可选). <br/>
 * date: 2013-4-15 下午8:54:42 <br/>
 *
 * @author Administrator
 * @version 
 * @since JDK 1.6
 */
@Service("employeeService")
public class EmployeeServiceImpl extends BaseServiceImpl implements
		IEmployeeService {
	
	@Resource(name = "employeeDao")
	private IEmployeeDAO employeeDao;
	
	public IEmployeeDAO getEmployeeDao() {
		return employeeDao;
	}

	public void setEmployeeDao(IEmployeeDAO employeeDao) {
		this.employeeDao = employeeDao;
	}

	/**
	 * TODO 简单描述该方法的实现功能（可选）.
	 * @see com.jerry.service.IEmployeeService#getAllEmployees()
	 */
	@Override
	public List<EmployeeVO> getAllEmployees() throws BzException {
		List<EmployeePO> rs = null;
		try {
			rs = getEmployeeDao().findEmployees(null);
		} catch (DBException e) {
			logger.error("查询所有员工异常",e);
			throw new BzException();
		}
		return null;
	}

	/**
	 * TODO 简单描述该方法的实现功能（可选）.
	 * @see com.jerry.service.IEmployeeService#getEmoloyees(com.jerry.dao.vo.EmpFindVO)
	 */
	@Override
	public List<EmployeeVO> getEmoloyees(EmpFindVO findVO) throws BzException {

		// TODO Auto-generated method stub
		return null;
	}

}

